package com.wxl.common.bean

import com.wxl.common.R

/**
 * create file time : 2021/3/8
 * create user : wxl
 * subscribe :
 */
class MerchantListBean {

    var type: String

    var data: ArrayList<MerchantBean>

    var select: Boolean = false

    var splitIndex: Int = 0


    constructor(type: String, data: ArrayList<MerchantBean>) {
        this.type = type
        this.data = data
    }

    constructor(type: String, data: ArrayList<MerchantBean>, splitIndex: Int) {
        this.type = type
        this.data = data
        this.splitIndex = splitIndex
    }


    companion object {

        fun getMerchants(): ArrayList<MerchantListBean> {
            val data = ArrayList<MerchantListBean>()
            val cd0 = ArrayList<MerchantBean>()
            cd0.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 0))
            cd0.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 0))
            cd0.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 0))
            cd0.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 0))
            cd0.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 0))
            data.add(MerchantListBean("美食", cd0, cd0.size))


            val cd1 = ArrayList<MerchantBean>()
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            cd1.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 1))
            data.add(MerchantListBean("服饰", cd1, cd0.size + cd1.size))


            val cd2 = ArrayList<MerchantBean>()
            cd2.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 2))
            cd2.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 2))
            cd2.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 2))
            cd2.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 2))
            cd2.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 2))
            data.add(MerchantListBean("酒店", cd2, cd0.size + cd1.size + cd2.size))


            val cd3 = ArrayList<MerchantBean>()
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            cd3.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 3))
            data.add(MerchantListBean("百货", cd3, cd0.size + cd1.size + cd2.size + cd3.size))


            val cd4 = ArrayList<MerchantBean>()
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            cd4.add(MerchantBean("肠旺面", "455", "撒谎的车把上哭的", R.mipmap.icon_xiaolaba, 4))
            data.add(
                MerchantListBean(
                    "生鲜",
                    cd4,
                    cd0.size + cd1.size + cd2.size + cd3.size + cd4.size
                )
            )

            return data
        }
    }
}